<?
class graphSystemLoad extends graphBase {
	protected $rrdFile = 'system_load.rrd';
	public function getOptions() {
		$opts = array();
		$opts[] = '--slope-mode';
		$opts[] = 'DEF:1min='.$this->rrdPath.':1min:AVERAGE';
		$opts[] = 'DEF:5min='.$this->rrdPath.':5min:AVERAGE';
		$opts[] = 'DEF:15min='.$this->rrdPath.':15min:AVERAGE';
		$opts[] = 'CDEF:a=1min,100,/';
  		$opts[] = 'CDEF:b=5min,100,/';
		$opts[] = 'CDEF:c=15min,100,/';
		$opts[] = 'CDEF:cdefd=a,b,c,+,+';
		$opts[] = 'AREA:a#ffeeaa::';
		$opts[] = 'LINE1.25:c#cc0000:15 Min';
		$opts[] = 'GPRINT:c:LAST:   %7.2lf';
		$opts[] = 'GPRINT:c:AVERAGE:  %7.2lf';
		$opts[] = 'GPRINT:c:MAX:  %7.2lf\n';
		$opts[] = 'LINE1.25:b#ea8f00:5 Min:';
		$opts[] = 'GPRINT:b:LAST:    %7.2lf';
		$opts[] = 'GPRINT:b:AVERAGE:  %7.2lf';
		$opts[] = 'GPRINT:b:MAX:  %7.2lf\n';
		$opts[] = 'LINE1:a#c5aa00:1 Min:';
		$opts[] = 'GPRINT:a:LAST:    %7.2lf';
		$opts[] = 'GPRINT:a:AVERAGE:  %7.2lf';
		$opts[] = 'GPRINT:a:MAX:  %7.2lf\n';
		$opts[] = 'COMMENT:Load Average  Current    Average    Maximum\n';
		return $opts;
	}
}